package com.leancloud.home.adapter;

import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.leancloud.home.R;
import com.leancloud.home.entity.ComputingEntity;
import com.leancloud.home.entity.YouXuanEntity;

import tech.com.commoncore.utils.OnNoDoubleClickListener;

public class YouXuanAdapter extends BaseQuickAdapter<YouXuanEntity, BaseViewHolder> {



    public YouXuanAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, YouXuanEntity item) {


        helper.setText(R.id.tv_title,item.getTitle());
        helper.setText(R.id.tv_number,item.getNumber());
        helper.setText(R.id.tv_time,item.getType());
        helper.setText(R.id.tv_mark,item.getMark());
        helper.setText(R.id.tv_code,item.getCode());
        helper.setText(R.id.tv_p_code,item.getPcode());
        helper.setText(R.id.tv_fengxian_price,item.getFengxian()+"  "+item.getPrice());

        helper.itemView.setOnClickListener(new OnNoDoubleClickListener() {
            @Override
            public void onNoDoubleClick(View v) {

            }
        });

    }
}
